const { getAdresses_3, modifyAddress_3 } = require("../dao/addressesDao.js")

// 获取收货地址信息
module.exports.getAdresses_2 = async function(data){
    let result = await getAdresses_3(data);
    return result;
}

// 通过ID修改收货地址
module.exports.modifyAddress_2 = async function(data){
    let result = await modifyAddress_3(data);
    if(result.nModified){
        return true
    }
    return false
}